#ifndef _CENEMYWAVE_H_
#define _CENEMYWAVE_H_

#include "cocos2d.h"
#include "Box2D/Box2D.h"
#include "CKeyProb.h"
/**
 * This class holds parameters of an enemy wave.
 * It is used by the enemy generator.
 */
USING_NS_CC;

class CEnemyWave
{
public:
	int 		__enemyCount;
	CCArray*	__pEnemyTypeProb;
	CCArray*	__pEnemySizeProb;

	CEnemyWave():
		__enemyCount(0),
		__pEnemyTypeProb(NULL),
		__pEnemySizeProb(NULL)
	{}

	CEnemyWave(int enemyCount, CCArray* pEnemyTypeProb, CCArray* pEnemySizeProb):
		__enemyCount(enemyCount),
		__pEnemyTypeProb(pEnemyTypeProb),
		__pEnemySizeProb(pEnemySizeProb)
	{}

	~CEnemyWave()
	{
		__pEnemyTypeProb->removeAllObjects();
		__pEnemySizeProb->removeAllObjects();
		delete __pEnemyTypeProb;
		delete __pEnemySizeProb;
	}

	/**
	 * @return true if ArrayLists were initialized without problems.
	 */
	bool init()
	{
		if(!__pEnemyTypeProb)
		{
			__pEnemyTypeProb = new CCArray();
		}

		if(!__pEnemySizeProb)
		{
			__pEnemySizeProb = new CCArray();
		}
		return true;
	}
};

#endif //_CENEMYWAVE_H_
